package edu.bupt.changelog.history.defaultsaver;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Record {
    private String bizKey;
    private String bizType; // 防止不同的bizType其bizKey一样;
    private Date created;
    private String creator;

    private String oldEntityJsonStr;
    private String newEntityJsonStr;

    private Integer changeType; // 1-增加;2-更新;3-删除;


    private List<ChangedKV> changeInfors = new ArrayList<>();

    public String getOldEntityJsonStr() {
        return oldEntityJsonStr;
    }

    public void setOldEntityJsonStr(String oldEntityJsonStr) {
        this.oldEntityJsonStr = oldEntityJsonStr;
    }

    public String getNewEntityJsonStr() {
        return newEntityJsonStr;
    }

    public void setNewEntityJsonStr(String newEntityJsonStr) {
        this.newEntityJsonStr = newEntityJsonStr;
    }

    public String getBizKey() {
        return bizKey;
    }

    public void setBizKey(String bizKey) {
        this.bizKey = bizKey;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Integer getChangeType() {
        return changeType;
    }

    public void setChangeType(Integer changeType) {
        this.changeType = changeType;
    }

    public List<ChangedKV> getChangeInfors() {
        return changeInfors;
    }

    public void setChangeInfors(List<ChangedKV> changeInfors) {
        this.changeInfors = changeInfors;
    }
}
